<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/default.xhtml">
	<ui:define name="content">
		<h1>#{IdentityModelBean.header}</h1>
		<h2>Password reset </h2>
		<h:form>
			<h:panelGrid columns="2">
			
			 	
			 	
				<h:outputLabel for="#{passwordSelf.username}" value="username" />
				<h:inputText id="username" value="#{passwordSelf.username}"
					label="username" />
				<h:message for="username" errorClass="invalid" />

				<h:message for="email" errorClass="invalid" />
				<h:outputLabel for="#{passwordSelf.email}" value="email" />
				<h:inputText id="email" value="#{passwordSelf.email}" label="email" />
				<h:message for="email" errorClass="invalid" />

				<p:captcha publicKey="6LefgMwSAAAAAJOuAZVUVn_fQkE2gNWHHETEW-ZP"/>
				<p:commandButton actionListener="#{passwordSelf.reset}"
					value="reset" ajax="false"/>
				<p:messages showDetail="false"/>  
			 	
			</h:panelGrid>

		</h:form>
	</ui:define>
</ui:composition>